const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false, // 关闭eslint校验
  // 配置跨域
  devServer: {
    proxy: {
      '/api': {
        // http://localhost:8080/api => http://localhost:3000/api
        target: 'http://localhost:3000',
        changeOrigin: true,
      }
    }
  }
})
